import styles from './index.module.scss'
const EditList = ({ type, configList, onLeftClick }) => {
  const list = configList[type]
  console.log(list)
  return (
    <div className={styles.root}>
      {list.map((item) => (
        <div key={item.title} onClick={item.fn} className="list-item">
          {item.title}
        </div>
      ))}

      <div onClick={onLeftClick} className="list-item">
        取消
      </div>
    </div>
  )
}
export default EditList
